#include <iostream>
using namespace std;

/*
    使用方法：
        类名::枚举值
*/


class Cat
{

public:
    enum color { white, black, gray ,yellow};

};


int main()
{
    Cat cat;
    cout << cat.color::white << endl;
    cout << Cat::white << endl;
    // 定义枚举类型的变量
    enum Cat::color c = Cat::yellow;
    cout << c << endl;

    return 0;
}